/* pages/study-plan/study-plan.less */
@primary-color: #3498db;
@success-color: #2ecc71;
@warning-color: #f39c12;
@danger-color: #e74c3c;
@card-bg: #fff;

.container {
  background-color: #f5f7fa;
  min-height: 100vh;
  padding: 20rpx;
}

.header {
  display: flex;
  justify-content: center; /* 添加水平居中 */
  align-items: center; /* 添加垂直居中 */
  padding: 30rpx 0;
  margin-bottom: 20rpx;
  position: relative; /* 为伪元素定位做准备 */
  .title {
    font-size: 36rpx;
    font-weight: bold;
    color: #2c3e50;
    text-align: center; /* 确保文本自身居中 */
  }
} 

.card {
  background: @card-bg;
  border-radius: 16rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  padding: 30rpx;
  margin-bottom: 30rpx;
  
  .card-title {
    font-size: 32rpx;
    font-weight: bold;
    color: @primary-color;
    padding-bottom: 20rpx;
    margin-bottom: 20rpx;
    border-bottom: 2rpx solid #eee;
  }
}

.exam-info {
  .info-item {
    display: flex;
    margin-bottom: 20rpx;
    
    .label {
      font-weight: bold;
      color: #7f8c8d;
      width: 160rpx;
    }
    
    .value {
      flex: 1;
      color: #2c3e50;
    }
  }
}

.study-plan {
  .phase {
    margin-bottom: 40rpx;
    padding: 20rpx;
    border-radius: 12rpx;
    background: #f9f9f9;
    
    &:last-child {
      margin-bottom: 0;
    }
    
    .phase-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20rpx;
      
      .phase-title {
        font-size: 28rpx;
        font-weight: bold;
        color: #2c3e50;
      }
      
      .phase-tag {
        background: lighten(@primary-color, 40%);
        color: darken(@primary-color, 10%);
        padding: 6rpx 16rpx;
        border-radius: 20rpx;
        font-size: 24rpx;
      }
    }
    
    .phase-content {
      .tip {
        font-size: 26rpx;
        color: #34495e;
        margin-bottom: 15rpx;
        padding-left: 20rpx;
        position: relative;
        
        &::before {
          content: "•";
          position: absolute;
          left: 0;
          color: @primary-color;
        }
      }
      
      .goal {
        margin-top: 20rpx;
        padding: 15rpx;
        background: lighten(@success-color, 45%);
        border-radius: 10rpx;
        color: darken(@success-color, 15%);
        font-weight: bold;
        font-size: 26rpx;
      }
    }
  }
}

.tools {
  .tool-item {
    display: flex;
    align-items: center;
    margin-bottom: 25rpx;
    
    .tool-icon {
      font-size: 36rpx;
      margin-right: 15rpx;
      width: 50rpx;
      text-align: center;
    }
    
    .tool-name {
      font-size: 26rpx;
      color: #34495e;
    }
  }
}

.notice {
  .notice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25rpx;
    
    .notice-icon {
      font-size: 32rpx;
      margin-right: 15rpx;
      margin-top: 6rpx;
    }
    
    .notice-text {
      font-size: 26rpx;
      color: #e74c3c;
      line-height: 1.6;
    }
  }
}

.action-btn {
  background: linear-gradient(135deg, @primary-color, darken(@primary-color, 15%));
  color: white;
  border-radius: 50rpx;
  font-size: 32rpx;
  font-weight: bold;
  height: 90rpx;
  line-height: 90rpx;
  margin: 40rpx 0;
  box-shadow: 0 8rpx 20rpx rgba(52, 152, 219, 0.3);
}